package cn.egeek.babel.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Option entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "option", catalog = "yd_bbs_db")
public class Option implements java.io.Serializable {

	// Fields

	private Long id;
	private String name;
	private String value;
	private String autoload;

	// Constructors

	/** default constructor */
	public Option() {
	}

	/** full constructor */
	public Option(String name, String value, String autoload) {
		this.name = name;
		this.value = value;
		this.autoload = autoload;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "name", length = 64)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "value")
	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Column(name = "autoload", length = 20)
	public String getAutoload() {
		return this.autoload;
	}

	public void setAutoload(String autoload) {
		this.autoload = autoload;
	}

}